*****************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************
**README for: Replication of Levin et. al (2021) „A test of the democratic peacekeeping hypothesis: Coups, democracy, and foreign military deployments"
**By: Niklas Maximilian Reinecke and Dr. Lars Pelke
**22.05.2023
**Software: STATA 17
*****************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************

*****************************************************************************************************************************************************************************
**SYSTEM REQUIREMENTS:
*****************************************************************************************************************************************************************************

**Minimum requirements:
*Requires a 64-bit processor and operating system
*OS: Windows 10 or later
*Processor: Intel Core i3 11th Gen or equivalent
*Memory: 16 GB DDR4 RAM or equivalent
*Graphics: Intel(R) UHD Graphics or equivalent
*Storage: 8 GB available space

*****************************************************************************************************************************************************************************
**The list of materials:
*****************************************************************************************************************************************************************************

*original_data.dta
*Technical_Replication.dta
*V-Dem-CY-Full+Others-v12.dta
*V-Dem-Replication.dta
*winning_coalition_data.dta
*Replication_Study_2.do
*Replication_Study_2_Appendix.do
*The outputs used in the replication analysis and Appendix

*****************************************************************************************************************************************************************************
**Folder structure:
*****************************************************************************************************************************************************************************
https://www.thewindowsclub.com/how-to-create-a-folder-tree-in-windows-10
C:.
|   
\---Replication
   |   2023_05_17_manuscript_ZfVP.docx
   |   2023_05_17_Supplementary Appendix.docx
   |   READ ME.txt
   |   Replication_Study_2.do
   |   Replication_Study_2_Appendix.do
   |   Study_2_log_file.log
   |   
   +---data
   |   \---Study_2
   |           original_data.dta
   |           Technical_Replication.dta
   |           V-Dem-CY-Full+Others-v12.dta
   |           V-Dem-Replication.dta
   |           winning_coalition_data.dta
   |           
   +---figures
   |   \---Study_2
   |           B2.1.gph
   |           B2.2.gph
   |           B2.3.gph
   |           B2.4.gph
   |           B2.5.gph
   |           B2.6.gph
   |           B2.7.gph
   |           B2.8.gph
   |           B3.1.gph
   |           B3.2.gph
   |           B3.3.gph
   |           B3.4.gph
   |           B3.5.gph
   |           B3.6.gph
   |           B9.1.gph
   |           B9.2.gph
   |           B9.3.gph
   |           B9.4.gph
   |           Figure_2_Main_paper.png
   |           Figure_B1_without_year_fe.png
   |           Figure_B2_with_year_fe.png
   |           Figure_B3_AME_by_troop_rounded.png
   |           Figure_B4_AME_by_troop.png
   |           Figure_B5.png
   |           Figure_B6_AME_by_reg_type.png
   |           Figure_B7_AME_by_reg_type_year_FE.png
   |           Figure_B8.png
   |           Figure_B9_AME_by_reg_type.png
   |           
   \---tables
       \---Study_2
               Main_Table.rtf
               Table_B1.rtf
            

*****************************************************************************************************************************************************************************
**Information
*****************************************************************************************************************************************************************************

*The Stata Code will install the coefplot, and the estout package to your PC.


*****************************************************************************************************************************************************************************
**Instruction for running do-Files
*****************************************************************************************************************************************************************************

*The "Replication" folder contains everything the do-files require to reproduce the results in the paper. I used STATA version 17.0 to run all do-files.
*Change the Working directory "cd", inside the "Replication_Study_2.do" and in the "Replication_Study_2_Appendix.do" Do-File, to the current position of the "Replication" folder, before running the Do-Files.


